/**
 * 创建日期:2017/11/21 10:14
 * 创建作者:ewjx
 * 修改日期:2017/11/21 10:14
 * 备注信息:发表文章组件
 */

import {ListData} from './thread-list.js';

export const otherList = () => {
    let element = `<div class="forum-placard"></div>
            <ul class="${window.location.hash.replace('#/','')}-content forum-list">`;
    ListData.forEach((value, index) => {
        element += `<li>
                <span class="forum-replies" title="回复">${value.replies}</span>
                <span class="forum-title" title="标题"><a href="#/article/${index}">${value.title}</a></span>
                <span class="forum-author" title="创建者">${value.author}</span>
                <span class="forum-create_time" title="创建时间">${value.create_time}</span>
                <span class="forum-check_number" title="点击量">${value.check_number}</span>
                <span class="forum-respondents" title="回复者">${value.respondents}</span>
                <span class="forum-reply_time" title="回复时间">${value.reply_time}</span>
            </li>`
    });
    return element += '</ul>';
};

